package com.xd.core.system.service.impl;

import com.xd.core.note.ICacheService;
import com.xd.core.system.entity.ProvincesInfo;
import com.xd.core.system.mapper.ProvincesInfoMapper;
import com.xd.core.system.service.IProvincesInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author ZX
 * @since 2025-03-25
 */
@Service
public class ProvincesInfoServiceImpl extends ServiceImpl<ProvincesInfoMapper, ProvincesInfo> implements IProvincesInfoService {
    @Resource
    private ICacheService cacheService;

    @Override
    public List<ProvincesInfo> getProvince(boolean head) {
        return cacheService.province(head);
    }
}
